FROM findepi/graalvm:java17-native

MAINTAINER nbacheng

RUN mkdir -p /nbmade/xxljob/logs

WORKDIR /nbmade/xxljob

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 9100

ADD ./target/nbmade-xxl-job-admin.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
